package org.prothliberger.reflect;

import java.util.Arrays;

public class MainCreatePersonne {

	public static void main(String[] args) {
		
		Employee vEmployee = new Employee();
		
		vEmployee.setPost("Directeur");
		vEmployee.setSalaire(12000);
		vEmployee.setNom("Rothlisberger");
		vEmployee.setPrenom("Patrick");
		vEmployee.setSexe(Sexe.Masculin);
		
 
		System.out.println(vEmployee);
				
		Sexe vSexeEnum = Sexe.valueOf("Masculin");
		System.out.println("sexe = " + vSexeEnum);
		
		//vSexeEnum = Sexe.valueOf("abc");
		
		
		// System.out.println(Arrays.asList(Sexe.values()));
		
	}

}
